import 'package:flutter/material.dart';
import 'package:flutter_bmfmap_example/tool/HYSizeFit%20.dart';

class TextFieldContainer extends StatelessWidget {
  final Widget child;
  const TextFieldContainer({
    Key key,
    this.child,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      padding: EdgeInsets.symmetric(horizontal: 20, vertical: 5),
      width: HYSizeFit.setRpx(560),
      decoration: BoxDecoration(
        color: Color.fromRGBO(240,240,240, 1),
        borderRadius: BorderRadius.circular(29),
      ),
      child: child,
    );
  }
}
